const app = getApp()
Page({
    data: {
        user: {},
        messagesList: []
    },
    onShow() {
        this.getMyData()
    },
    getMyData() {
        let user = app.globalData.user
        let diaries = user.diaries
        this.setData({
            messagesList: diaries,
            user,
        })
    },
});